package com.kgc.sbt.beans;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.springframework.format.annotation.DateTimeFormat;

import java.io.Serializable;
import java.util.Date;

/**
 * Created on 2021/8/20.
 * <p>
 * Author: songhe
 * <p>
 * Description:
 */
@ApiModel(value = "查询优惠卷类")
@Data
public class QueryCoupons implements Serializable {
    private static final long serialVersionUID = 1L;

    /**
     * 优惠券名称
     */
    @ApiModelProperty(value = "优惠券名称")
    private String couponsName;

    /**
     * 优惠券要求及优惠措施
     */
    @ApiModelProperty(value = "优惠券要求及优惠措施")
    private String couponsRequired;

    /**
     * 优惠金额
     */
    @ApiModelProperty(value = "优惠金额")
    private Integer couponsPrice;

    /**
     * 优惠券领取时间
     */
    @ApiModelProperty(value = "优惠券领取时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date startTime;

    /**
     * 优惠券失效时间
     */
    @ApiModelProperty(value = "优惠券失效时间")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date endTime;


}
